package com.yimingkeji.mongo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

/**
 * @Describe:
 * @Auther: zhenlong.yang
 * @Date: 2018/12/4 13:17
 */
@Data
@Document(collection = "user")
public class User {
    @Id
    private String id;
    private String name;
    private int age = 18;
    private LocalDateTime createTime = LocalDateTime.now();
}
